// 可能是我的node版本问题，不用严格模式使用ES6语法会报错
"use strict";
const models = require('../data/db')
const express = require('express')
const path = require('path')
const FileUtils = require('../util/FileUtils')
const builder = require('../response/rest.result.builder')
const utils = require('../util/utils')
const fs = require('fs')
const fsExtra = require('fs-extra')
const multer = require('multer')
const upload = require('../util/fileUpload');
/************** 创建(create) 读取(get) 更新(update) 删除(delete) **************/


module.exports = {
  uploadImg: function (req, res, next) {
    console.log('imgupload')
    upload.array("imgUploader", 3)(req, res, function (err) {
      if (err) {
        return builder.buildFailedResultInfo(res);
      }
      return builder.buildSuccessResultInfoWithData(res,'success');
    });
  }
};
